package com.m7.imkfsdk;

/**
 * Created by tudou on 2018/8/15.
 */

public class LoginEntity {


    /**
     * code : 200
     * status : success
     * msg : success
     * body : {"expired":31449600,"member":{"headerUrl":"http://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTJpbicpMGy73vPZMX9mqhick0BA12tVzGt0vjqYw6qDlNnLBwvYicpf43FYUbSKpa3MpCowgbD1CRgibA/132","level":"VIP_0","nickName":"宋山","type":"normal"},"token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJhdWQiOiJlYjA1ZWE2ZiIsInN1YiI6IllNTjlKZDAzeGsiLCJtdCI6MCwiYXBwSWQiOiJ5NmkzZkxTREhyejhBaEphIiwiZXhwIjoxNTY1ODM2MTEwLCJpYXQiOjE1MzQyOTk4MTAsInZlcnNpb24iOjEwMDAwMn0.LvcFnDGBtFABSgKKIcyCQIrok6TE7dlDJMypqy7gxPpSQFe4b2wr2Gto1OUj_fVsbDpkbdqD0PJKBDapJ9DYgw"}
     */

    private String code;
    private String status;
    private String msg;
    private BodyEntity body;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public BodyEntity getBody() {
        return body;
    }

    public void setBody(BodyEntity body) {
        this.body = body;
    }

    public static class BodyEntity {

        /**
         * token : string,登录成功后返回的登录凭证
         * expired : integer,凭证有效时长（秒），在失效前客户端需主动刷新凭证
         * member : {"nickName":"string,昵称","headerUrl":"string,头像","gender":"integer,性别，0:未知，1:男，2:女","number":"string,会员码","type":"integer,会员类型，0：普通用户，1：普通VIP，2：专业VIP","level":"integer,会员等级，默认：0","mobile":"string,手机号码"}
         */

        private String token;
        private String expired;
        private MemberEntity member;

        public String getToken() {
            return token;
        }

        public void setToken(String token) {
            this.token = token;
        }

        public String getExpired() {
            return expired;
        }

        public void setExpired(String expired) {
            this.expired = expired;
        }

        public MemberEntity getMember() {
            return member;
        }

        public void setMember(MemberEntity member) {
            this.member = member;
        }

        public static class MemberEntity {
            /**
             * nickName : string,昵称
             * headerUrl : string,头像
             * gender : integer,性别，0:未知，1:男，2:女
             * number : string,会员码
             * type : integer,会员类型，0：普通用户，1：普通VIP，2：专业VIP
             * level : integer,会员等级，默认：0
             * mobile : string,手机号码
             */

            private String nickName;
            private String headerUrl;
            private String gender;
            private String number;
            private String type;
            private String level;
            private String id;
            private String inviteCode;

            public String getInviteCode() {
                return inviteCode;
            }

            public void setInviteCode(String inviteCode) {
                this.inviteCode = inviteCode;
            }

            private String mobile;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getNickName() {
                return nickName;
            }

            public void setNickName(String nickName) {
                this.nickName = nickName;
            }

            public String getHeaderUrl() {
                return headerUrl;
            }

            public void setHeaderUrl(String headerUrl) {
                this.headerUrl = headerUrl;
            }

            public String getGender() {
                return gender;
            }

            public void setGender(String gender) {
                this.gender = gender;
            }

            public String getNumber() {
                return number;
            }

            public void setNumber(String number) {
                this.number = number;
            }

            public String getType() {
                return type;
            }

            public void setType(String type) {
                this.type = type;
            }

            public String getLevel() {
                return level;
            }

            public void setLevel(String level) {
                this.level = level;
            }

            public String getMobile() {
                return mobile;
            }

            public void setMobile(String mobile) {
                this.mobile = mobile;
            }
        }
    }
}
